home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / what's new? / sample code / graphics 3d / opengl drawsprocket / read me < prev   
Encoding:
Text File  |  1999-12-07  |  1.7 KB  |  12 lines

  1. This is an example of OpenGL and DrawSprocket integration for full screen drawing, correctly handling multiple displays.  Also, this shows how to get the version of DrawSprocket in use for both DrawSprocket 1.1.4 and 1.7 and demonstrates multiple OpenGL pixel format examples.  It also integrates a simple OpenGL buffer swaps per second counter.  This is done via the font support in AGL and a generic string drawing routine.
  2.                 
  3. The optimal way to select a rendering context would be to check the available devices, find the best, then present the user with a selection dialog only if there are more than one "best" device.  Currently, there is not a good mechanism to do this easily, so the two best other options are:
  4. 1) Iterate through the available devices find the best renderer, build a DSp context on this, then build your OpenGL context.  The downfall of this method is that you know nothing about the graphics capabilities of the device and the user can't select another screen.  The upside is that you get a renderer that is has the capabilities you want.
  5. 2) Allow the user to select a screen to use, build a DSp context and then a OpenGL context.  This second method is simpler but relies on user knowing which device is the best at 3D.
  6.                 
  7. This sample illustrates the second method which makes it simpler and allows us to illustrate the DSp/OpenGL interface well.            
  8.  
  9. Note: You will have to replace the access path for the OpenGL SDK with valid a one for your local environment.  Additionally, you may have to add a path to the DrawSprocket SDK if you are using Universal Interfaces 3.2 or earlier.
  10.  
  11. Requirements: Mac OS 8.1+, OpenGL SDK, Universal Interfaces 3.3 or DrawSprocket SDK
  12.